package net.hn.hnms.biz.analysis.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import lombok.extern.slf4j.Slf4j;
import net.hn.hnms.biz.analysis.domain.*;
import net.hn.hnms.biz.analysis.domain.dto.*;
import net.hn.hnms.biz.analysis.mapper.MineMapper;
import net.hn.hnms.biz.analysis.service.IMineService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
@DS("mine")
public class MineServiceImpl implements IMineService {

    @Resource
    private MineMapper mineMapper;

    @Override
    public List<SysIndicatorDto> getSysIndicator() {
        return mineMapper.getSysIndicator();
    }

    @Override
    public List<SysIndicatorBaseData> getIndicatorBase() {
        return mineMapper.getIndicatorBase();
    }

    @Override
    public void batchInsertWeightScores(List<SysMineIndicatorModel> gasJudgeModelList) {
        mineMapper.batchInsertWeightScores(gasJudgeModelList);
    }

    @Override
    public List<MiningFaceDto> getMiningFaceData() {
        return mineMapper.getMiningFaceData();
    }

    @Override
    public void insertGroundPressureScores(MineGroundPressureJudgement mineGroundPressureJudgement) {
        mineMapper.insertGroundPressureScores(mineGroundPressureJudgement);
    }

    @Override
    public void saveLeaderException(List<LeaderExceptionJudgeDay> leaderExceptionJudgeDays) {
        mineMapper.saveLeaderException(leaderExceptionJudgeDays);
    }

    @Override
    public void saveHisWellOutTimeStatistics(List<WellOutDto> wellOutData) {
        mineMapper.saveHisWellOutTimeStatistics(wellOutData);
    }

    @Override
    public void saveMineAreaOverStaffTimeDay(List<MineAreaOverStaffTimeDay> mineAreaOverStaffTimeDayList) {
        mineMapper.saveMineAreaOverStaffTimeDay(mineAreaOverStaffTimeDayList);
    }

    @Override
    public void saveMineOverStaffTimeDay(List<MineOverStaffTimeDay> mineOverStaffTimeDays) {
        mineMapper.saveMineOverStaffTimeDay(mineOverStaffTimeDays);
    }

    @Override
    public void batchInsertRoofAbscissionAlarm(List<RoofAbscissionDto> roofAbscissionData) {
        mineMapper.batchInsertRoofAbscissionAlarm(roofAbscissionData);
    }

    @Override
    public void batchInsertSupportdataAlarm(List<SupportPressureDto> supportPressureData) {
        mineMapper.batchInsertSupportdataAlarm(supportPressureData);
    }

    @Override
    public void batchInsertStaff(List<HisMineStaffDayDto> hisMineStaffDay) {
        mineMapper.batchInsertStaff(hisMineStaffDay);
    }

    @Override
    public void batchInsertWaterEmissionAlarm(List<WaterEmissionAlarmDay> waterEmissionAlarmDayList) {
        mineMapper.batchInsertWaterEmissionAlarm(waterEmissionAlarmDayList);
    }

}
